package task

import "errors"

type FilterList []Filter
type Filter struct {
	Grok Grok
}

type Tags interface {
}
type Condition struct {
	Group string
	Tags  Tags
}

type Match struct {
	Message string
}

type Grok struct {
	Condition           Condition
	Patterns_dir        []string
	Match               Match
	Keep_empty_captures bool
}

func (filterlist FilterList) IsValid() error {
	if len(filterlist) == 0 {
		return errors.New("filter is nil or not set")
	}
	return nil
}
